<?php
    $contents = file_get_contents("seeds_nodup.lst");
    $seeds = explode("\n", $contents);
    $targetNums = [
        2052875697,
        330619760,
        521429260,
        1651579358,
        2101399321,
        560040804,
        833910012,
        619578441,
        493210616,
        2072865804
    ];
    
    foreach ($seeds as $seed){
        srand((int)$seed);
        $itr = 0;
        foreach ($targetNums as $num) {
            if (rand() !== $num) {
                break; // Exit if any number doesnt match.
            }
            $itr = $itr + 1;
        }
        if ($itr == 10){
            echo "\n----------------------------------\n";
            echo "SUCCESS!\n";
            echo "SEED: $seed\n";
            echo "----------------------------------\n\n";
            break;
        }
    }
?>
